package com.tmt.im.service.controller.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import io.swagger.v3.oas.annotations.tags.Tag;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import lombok.Getter;
import lombok.Setter;

import java.io.Serial;
import java.io.Serializable;

import static io.swagger.v3.oas.annotations.media.Schema.RequiredMode.REQUIRED;

/**
 * @Description TODO
 * @Author wuyi
 * @Date 2024/9/18 10:37
 * @Version 1.0
 **/
@Getter
@Setter
@Tag(name = "群组禁言请求对象", description = "群组禁言请求对象")
public class UpdateMemberNickRequest implements Serializable {
    @Serial
    private static final long serialVersionUID = 7902330902982358214L;

    @Schema(requiredMode = REQUIRED, description = "群组ID")
    @NotNull(message = "群组ID不允许为null")
    private Long tid;

    @Schema(requiredMode = REQUIRED, description = "需要修改群昵称的用户ID")
    @NotNull(message = "要修改群昵称的用户ID不允许为null")
    private Long memberId;

    @Schema(requiredMode = REQUIRED, description = "当前用户的新昵称")
    @NotNull(message = "用户昵称不允许为null")
    @NotBlank(message = "用户昵称不允许为空串")
    private String nick;
}
